/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.service;

import com.yunqian.redot.domain.Contents;
import com.yunqian.redot.repository.ContentsRepository;
import com.yunqian.service.BaseService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务数据内容数据表（有顺序图或文字）
 *
 * @author zsy
 * 2018-09-29 15:53:53
 */
@Service
@Log4j2
public class ContentsService extends BaseService<Contents, Long> {

    @Autowired
    private ContentsRepository contentsRepository;

    public List<Contents> findAllByRelateBusinessAndRelateId(Integer relateBusiness, Long relateId){
        return contentsRepository.findAllByRelateBusinessAndRelateId(relateBusiness, relateId);
    }

}
